package com.project.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.auth.model.process.Process;
import com.project.auth.vo.process.ApprovalVo;
import com.project.auth.vo.process.ProcessFormVo;
import com.project.auth.vo.process.ProcessQueryVo;
import com.project.auth.vo.process.ProcessVo;

import java.util.Map;

/**
 * @Description
 * @Author : XIAOMING
 * @create 2023/6/1 10:47
 */
public interface ProcessService extends IService<Process> {
    IPage<ProcessVo> selectPage(Page<ProcessVo> pageParam, ProcessQueryVo processQuery);

    void deployByZip(String deployPath);

    void startUp(ProcessFormVo formVo);

    IPage<ProcessVo> findPending(Page<Process> pageParam);

    Map<String, Object> show(Long id);

    void approve(ApprovalVo approvalVo);

    IPage<ProcessVo> findProcessed(Page<Process> pageParam);

    IPage<ProcessVo> findStarted(Page<ProcessVo> pageParam);
}
